﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TY.Algorithm
{
  public class PIDData
    {
        public static int ReadTem(string hexStr)
        {
            if (Convert.ToInt32(hexStr.ToLower(), 16) > 10000)
            {
                return Convert.ToInt32("ffff" + hexStr.ToLower(), 16);
            }
            else
            {
                return Convert.ToInt32(hexStr.ToLower(), 16);
            }
        }
    }
}
